<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <td>姓名</td>
        <td>性别</td>
        <td>年龄</td>
        <td>状态</td>
        <td>操作</td>
    </tr>
<c:forEach items="${student2List}" var="s" varStatus="v">
    <tr>
        <td>${s.name}</td>
        <td>${s.sex}</td>
        <td>${s.age}</td>
        <td>${s.state}</td>
        <td><a href="/delete?id=${v.index+1}">删除</a></td>
    </tr>
</c:forEach>
</table>
</body>
</html>
